
//
//  YZQScrollCollectionViewCell.m
//  SuperNews
//
//  Created by qiang on 16/1/12.
//  Copyright © 2016年 qiang. All rights reserved.
//

#import "YZQScrollCollectionViewCell.h"

@implementation YZQScrollCollectionViewCell
//初始化方法
- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        //设置自定义的属性 如图片
        [self setUpUI];
    }
    return  self;
}
//设置界面
- (void)setUpUI
{
    //添加图片
    self.imageView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.imageView];
    
}

//设置子视图frame
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imageView.frame = CGRectMake(0, 0, self.imageSize.width, self.imageSize.height);
}


@end
